from wees.models import Wee, like
from django.contrib import admin

class LikeInline(admin.TabularInline):
	model = like
	extra = 3

class WeeAdmin(admin.ModelAdmin):
	list_display=(
		'title',
		'datetime',
		'text',
		'numLike',
		'numDislike',
		'user',
		)
	list_filter=['user']
	ordering=('datetime',)
	search_fields=('title','user','text',)
	inlines= [LikeInline]

admin.site.register(Wee,WeeAdmin)